package com.wgb.movie.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 电影院评价
 * @TableName movie_evaluation
 */
@TableName(value ="movie_evaluation")
@Data
public class MovieEvaluation implements Serializable {
    /**
     * 评价ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 评价内容
     */
    private String evaluationContent;

    /**
     * 电影院ID
     */
    private Long movieId;

    /**
     * 评价者ID
     */
    private Long userId;

    /**
     * 评分（可选，例如1到10）
     */
    private Integer rating;

    /**
     * 评价时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}